﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SharingCenter.Web.Shared
{
    using SharingCenter.Web.Classes;
    public partial class ModalMessage : System.Web.UI.UserControl
    {
        public string Message { get { return lblMessage.Text; } set { lblMessage.Text = value; } }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session[WebConsts.SK_MODAL_MESSAGE] != null)
            {
                lblMessage.Text = ((ModalMessageItem)Session[WebConsts.SK_MODAL_MESSAGE]).Message;
                ModalPopupExtender1.Show();
                Session[WebConsts.SK_MODAL_MESSAGE] = null;
            }
        }
    }
}